#pragma once

#include"stdio.h"
#include<list>
#include <sys/stat.h>
#include "Object.h"
#include "Rectangles.h"
#include "Circle.h"
#include "Plane.h"
#include "MyDefine.h"

using namespace std;

const static char* NAME_FILE_OBJECT = "SceneManager.txt";
static const int MAX_SIZE_TYPE = 10;

class SceneManager
{
private: 
	list<Object*> m_ObjectList; 
	time_t m_LastTimeFileModified;
	Object* m_objectSeleted;
	ObjectTouch* m_objectTouch;
public:
	SceneManager(void);
	~SceneManager(void);
	void Update(float frameTime);
	void AddObject(Object* object);
	void Render();//draw object;
	void Init();//
	EObjectType GetTypeObject(char* m_type);
	//Task 2
	void TouchActionDown(ESContext *esContext,int x, int y);
	void TouchActionUp(ESContext *esContext,int x, int y);
	void TouchActionMove(ESContext *esContext,int x, int y);
	void SetTouchPosition(int posX, int posY);

	
};